//
//  NSObject(extension).swift
//  Order
//
//  Created by Lazyloading on 2020/7/29.
//  Copyright © 2020 lazyloading. All rights reserved.
//

import Foundation

extension NSObject {
//  
//    typealias AspectsBlock = (AspectInfo)->()
//    
//    func swift_hook(with sel: Selector, options: AspectOptions, usingBlock: @escaping AspectsBlock) throws {
//        let blockObj: @convention(block) (_ id: AspectInfo)->Void = { aspectInfo in
//            usingBlock(aspectInfo)
//        }
//        try self.aspect_hook(sel, with: options, usingBlock: blockObj)
//    }
//    
//    static func swift_hook(with sel: Selector, options: AspectOptions, usingBlock: @escaping AspectsBlock) throws {
//        let blockObj: @convention(block) (_ id: AspectInfo)->Void = { aspectInfo in
//            usingBlock(aspectInfo)
//        }
//        try self.aspect_hook(sel, with: options, usingBlock: blockObj)
//    }
}
